package com.training.java.core.overloading;

public class OverridingDemo {

	public static void main(String[] args) {

		Car Sed=new Sedan();
		Sed.start();
		Sed.stop();
		Sed.drive();
		//Sed.changegear();
		
		Car Pc=new MyPoliceCar();
		Pc.start();
		Pc.drive();
		Pc.stop();
		
		
		
	}

}
